.class public Lcom/instagram/android/creation/b/cx;
.super Lcom/instagram/e/b/b;
.source "ThumbnailPreviewFragment.java"


# instance fields
.field private a:Lcom/instagram/pendingmedia/model/c;

.field private b:I


# direct methods
.method public constructor <init>()V
    .locals 0

    .prologue
    .line 28
    invoke-direct {p0}, Lcom/instagram/e/b/b;-><init>()V

    return-void
.end method

.method static synthetic a(Lcom/instagram/pendingmedia/model/c;I)Landroid/graphics/Bitmap;
    .locals 1
    .parameter
    .parameter

    .prologue
    .line 28
    invoke-static {p0, p1}, Lcom/instagram/android/creation/b/cx;->b(Lcom/instagram/pendingmedia/model/c;I)Landroid/graphics/Bitmap;

    move-result-object v0

    return-object v0
.end method

.method static synthetic a(Lcom/instagram/android/creation/b/cx;)Lcom/instagram/pendingmedia/model/c;
    .locals 1
    .parameter

    .prologue
    .line 28
    iget-object v0, p0, Lcom/instagram/android/creation/b/cx;->a:Lcom/instagram/pendingmedia/model/c;

    return-object v0
.end method

.method static synthetic a(Lcom/instagram/android/creation/b/cx;Lcom/instagram/pendingmedia/model/c;)Lcom/instagram/pendingmedia/model/c;
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 28
    iput-object p1, p0, Lcom/instagram/android/creation/b/cx;->a:Lcom/instagram/pendingmedia/model/c;

    return-object p1
.end method

.method public static a(Landroid/support/v4/app/r;Ljava/lang/String;)V
    .locals 3
    .parameter
    .parameter

    .prologue
    .line 102
    new-instance v0, Landroid/os/Bundle;

    invoke-direct {v0}, Landroid/os/Bundle;-><init>()V

    .line 103
    const-string v1, "pendingMediaKey"

    invoke-virtual {v0, v1, p1}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V

    .line 104
    new-instance v1, Lcom/instagram/e/b/a/a;

    invoke-direct {v1, p0}, Lcom/instagram/e/b/a/a;-><init>(Landroid/support/v4/app/r;)V

    .line 105
    new-instance v2, Lcom/instagram/android/creation/b/cx;

    invoke-direct {v2}, Lcom/instagram/android/creation/b/cx;-><init>()V

    invoke-virtual {v1, v2, v0}, Lcom/instagram/e/b/a/a;->a(Landroid/support/v4/app/Fragment;Landroid/os/Bundle;)Lcom/instagram/e/b/a/a;

    .line 106
    sget v0, Lcom/facebook/ar;->popup_enter:I

    sget v2, Lcom/facebook/ar;->popup_exit:I

    invoke-virtual {v1, v0, v2}, Lcom/instagram/e/b/a/a;->a(II)V

    .line 107
    invoke-virtual {v1}, Lcom/instagram/e/b/a/a;->e()V

    .line 108
    return-void
.end method

.method private static b(Lcom/instagram/pendingmedia/model/c;I)Landroid/graphics/Bitmap;
    .locals 3
    .parameter
    .parameter

    .prologue
    const/4 v2, 0x1

    .line 81
    new-instance v0, Landroid/graphics/BitmapFactory$Options;

    invoke-direct {v0}, Landroid/graphics/BitmapFactory$Options;-><init>()V

    .line 82
    invoke-virtual {p0}, Lcom/instagram/pendingmedia/model/c;->q()Ljava/lang/String;

    move-result-object v1

    invoke-static {v1, p1, p1}, Lcom/instagram/n/a/a;->b(Ljava/lang/String;II)I

    move-result v1

    iput v1, v0, Landroid/graphics/BitmapFactory$Options;->inSampleSize:I

    .line 83
    iput-boolean v2, v0, Landroid/graphics/BitmapFactory$Options;->inPurgeable:Z

    .line 84
    iput-boolean v2, v0, Landroid/graphics/BitmapFactory$Options;->inInputShareable:Z

    .line 85
    invoke-virtual {p0}, Lcom/instagram/pendingmedia/model/c;->q()Ljava/lang/String;

    move-result-object v1

    invoke-static {v1, v0}, Landroid/graphics/BitmapFactory;->decodeFile(Ljava/lang/String;Landroid/graphics/BitmapFactory$Options;)Landroid/graphics/Bitmap;

    move-result-object v0

    return-object v0
.end method


# virtual methods
.method public a(Landroid/view/LayoutInflater;Landroid/view/ViewGroup;Landroid/os/Bundle;)Landroid/view/View;
    .locals 2
    .parameter
    .parameter
    .parameter

    .prologue
    .line 49
    sget v0, Lcom/facebook/ax;->fragment_thumbnail_preview:I

    const/4 v1, 0x0

    invoke-virtual {p1, v0, p2, v1}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;

    move-result-object v0

    return-object v0
.end method

.method public a(Landroid/os/Bundle;)V
    .locals 2
    .parameter

    .prologue
    .line 35
    invoke-super {p0, p1}, Lcom/instagram/e/b/b;->a(Landroid/os/Bundle;)V

    .line 36
    invoke-virtual {p0}, Lcom/instagram/android/creation/b/cx;->j()Landroid/support/v4/app/j;

    move-result-object v0

    check-cast v0, Lcom/instagram/pendingmedia/model/f;

    new-instance v1, Lcom/instagram/android/creation/b/cy;

    invoke-direct {v1, p0}, Lcom/instagram/android/creation/b/cy;-><init>(Lcom/instagram/android/creation/b/cx;)V

    invoke-interface {v0, v1}, Lcom/instagram/pendingmedia/model/f;->a(Ljava/lang/Runnable;)V

    .line 44
    return-void
.end method

.method public a(Landroid/view/View;Landroid/os/Bundle;)V
    .locals 2
    .parameter
    .parameter

    .prologue
    .line 54
    invoke-super {p0, p1, p2}, Lcom/instagram/e/b/b;->a(Landroid/view/View;Landroid/os/Bundle;)V

    .line 56
    invoke-virtual {p0}, Lcom/instagram/android/creation/b/cx;->j()Landroid/support/v4/app/j;

    move-result-object v0

    check-cast v0, Lcom/instagram/pendingmedia/model/f;

    new-instance v1, Lcom/instagram/android/creation/b/cz;

    invoke-direct {v1, p0, p1}, Lcom/instagram/android/creation/b/cz;-><init>(Lcom/instagram/android/creation/b/cx;Landroid/view/View;)V

    invoke-interface {v0, v1}, Lcom/instagram/pendingmedia/model/f;->a(Ljava/lang/Runnable;)V

    .line 78
    return-void
.end method

.method public d_()Ljava/lang/String;
    .locals 1

    .prologue
    .line 112
    const-string v0, "metadata_thumbnail_preview"

    return-object v0
.end method

.method public w()V
    .locals 2

    .prologue
    .line 90
    invoke-super {p0}, Lcom/instagram/e/b/b;->w()V

    .line 91
    invoke-virtual {p0}, Lcom/instagram/android/creation/b/cx;->j()Landroid/support/v4/app/j;

    move-result-object v0

    invoke-virtual {v0}, Landroid/support/v4/app/j;->getRequestedOrientation()I

    move-result v0

    iput v0, p0, Lcom/instagram/android/creation/b/cx;->b:I

    .line 92
    invoke-virtual {p0}, Lcom/instagram/android/creation/b/cx;->j()Landroid/support/v4/app/j;

    move-result-object v0

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Landroid/support/v4/app/j;->setRequestedOrientation(I)V

    .line 93
    return-void
.end method

.method public x()V
    .locals 2

    .prologue
    .line 97
    invoke-super {p0}, Lcom/instagram/e/b/b;->x()V

    .line 98
    invoke-virtual {p0}, Lcom/instagram/android/creation/b/cx;->j()Landroid/support/v4/app/j;

    move-result-object v0

    iget v1, p0, Lcom/instagram/android/creation/b/cx;->b:I

    invoke-virtual {v0, v1}, Landroid/support/v4/app/j;->setRequestedOrientation(I)V

    .line 99
    return-void
.end method
